package com.tanhua.server.service;

import com.tanhua.model.vo.SoulListVo;
import com.tanhua.server.interceptor.UserHolder;
import com.tanhua.service.SoulListApi;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author げっしょく
 * @date 2021/11/8
 */
@Service
public class TestSoulService {

    @DubboReference
    private SoulListApi soulListApi;

    public List<SoulListVo> getSoulList() {
        //获得所有的所有数据
        List<SoulListVo> vos = soulListApi.getSoulListVo(UserHolder.getId());
        return vos;
    }
}
